package io.gitee.kotle.android


fun getHolderStr(
    temp: BaseTemplate,
    packageName: String,
    classPath: String,
    className: String,
    bindingName: String,
): String {
    val fullClassName = "${className}${temp.classTypeName}"
    return """
    package $classPath

    import recyclerview.CompatBindingHolder
    import recyclerview.createListAdapter
    import ${packageName}.databinding.$bindingName
    
    class $fullClassName(mBinding: $bindingName) :
        CompatBindingHolder<$fullClassName.Bean, $bindingName>(mBinding) {
        companion object {
            fun adapter() = createListAdapter($fullClassName::class.java)
        }
    
        class Bean()
        
        override fun onBind(data: Bean) {
    
        }
    }
""".trimIndent()
}




